tricks to find number of subgroups of a cyclic group